package com.tony.study.PenTest;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: HaiDinTest
 * @Auther: 皮蛋布丁
 * @Date: 2021/11/01/22:03
 * @Description: 海鼎科技笔试题
 */
public class HaiDingTest {

    public static void main(String[] args) throws Exception {
        System.out.println(new HaiDingTest().test());
    }

    private String test() throws Exception{
        try {
            System.out.println("try");
            Integer i = Integer.valueOf("abc");
            return "test().try";

        } catch (Exception e) {
            System.out.println("catch");
            return "test().catch";
        } finally {
            try {
                System.out.println("finally");
                int i = 1 / 0;
            } catch (Exception e) {
                System.out.println("finally error");
                return "test().finally";
            }
        }
    }
}
